﻿
using Sustainalytics.ClientDW.Entities;
namespace Sustainalytics.GCCS.Service
{
    public class GCPrincipleTemplateDto
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public GCPillarTemplateDto Pillar { get; set; }


        public virtual GCPrincipleTemplateDto LoadFrom(GCPrincipleTemplate data)
        {
            this.Id = data.Id;
            this.Name = data.Name.Replace("Global Compact ","");
            this.Description = data.Description;
            this.Pillar = data.Pillar == null ? null : new GCPillarTemplateDto().LoadFrom(data.Pillar);

            return this;
        }
    }
}
